package org.dreamfly.core.service.impl;

import org.dreamfly.core.bean.SzModelType;
import org.dreamfly.core.dao.ModelTypeDAO;
import org.dreamfly.core.service.ModelTypeService;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Gin
 * Date: 2010-12-12
 * Time: 9:35:50
 * To change this template use File | Settings | File Templates.
 */
public class ModelTypeServiceImpl implements ModelTypeService {
    private ModelTypeDAO modelTypeDAO;
    @Override
    public List<SzModelType> findAll() {
        return modelTypeDAO.findAll(SzModelType.class);  //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public SzModelType getUnique(Long id) {
        return modelTypeDAO.find(SzModelType.class, id);
    }

    public void setModelTypeDAO(ModelTypeDAO modelTypeDAO) {
        this.modelTypeDAO = modelTypeDAO;
    }
}
